package string.classwork;

import java.lang.reflect.Array;
import java.util.Arrays;

public class split {
    public static void main(String[] args) {
        String str="123qwe456rty87ytu";
        String[] s=str.split("[0-9]+");
        System.out.println(Arrays.toString(s));
        String s1="123.456..87.....54.55";
        String[] s2=s1.split(".");
        System.out.println(Arrays.toString(s2));
    }
}
